package com.wh.wisdomsite.xbox.st.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * 合同清单entity
 * @author 刘旭
 * @version V1.0
 * @Package com.wh.wisdomsite.xbox.st.entity
 * @date 2018年12月24日 11:34
 * @Copyright 企业版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2018
 */
@TableName("st_contractDetail")
public class ContractDetail extends Model<ContractDetail> {

    /**
     * 合同清单ID
     */
    @TableId(type = IdType.UUID)
    private String cdId;

    /**
     * 合同信息ID
     */
    @TableField("coId")
    private String coId;

    /**
     * 物料ID
     */
    @TableField("maId")
    private String maId;

    /**
     * 工程总量
     */
    @TableField("totalCount")
    private Double totalCount;

    /**
     *合同单价
     */
    @TableField("unitContractPrice")
    private Double unitContractPrice;

    /**
     *合计金额
     */
    @TableField("totalPrice")
    private Double totalPrice;

    /**
     * 已请购量
     */
    @TableField("purchasedNum")
    private Double purchasedNum;

    /**
     * 数据状态
     */
    @TableField("dataState")
    private String dataState;

    /**
     * 创建者
     */
    @TableField("createBy")
    private String createBy;

    /**
     *创建时间
     */
    @TableField("createDate")
    private Date createDate;

    /**
     *更新者
     */
    @TableField("updateBy")
    private String updateBy;

    /**
     *更新时间
     */
    @TableField("updateDate")
    private Date updateDate;

    /**
     * 物料实体对象
     */
    @TableField(exist = false)
    private Material material;

    /**
     *备注信息
     */
    @TableField("remark")
    private String remark;

    public Double getUnitContractPrice() {
        return unitContractPrice;
    }

    public void setUnitContractPrice(Double unitContractPrice) {
        this.unitContractPrice = unitContractPrice;
    }

    public String getCdId() {
        return cdId;
    }

    public void setCdId(String cdId) {
        this.cdId = cdId;
    }

    public String getCoId() {
        return coId;
    }

    public void setCoId(String coId) {
        this.coId = coId;
    }

    public String getMaId() {
        return maId;
    }

    public void setMaId(String maId) {
        this.maId = maId;
    }

    public Double getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Double totalCount) {
        this.totalCount = totalCount;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Double getPurchasedNum() {
        return purchasedNum;
    }

    public void setPurchasedNum(Double purchasedNum) {
        this.purchasedNum = purchasedNum;
    }

    public String getDataState() {
        return dataState;
    }

    public void setDataState(String dataState) {
        this.dataState = dataState;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Material getMaterial() {
        return material;
    }

    public void setMaterial(Material material) {
        this.material = material;
    }

    @Override
    protected Serializable pkVal() {
        return cdId;
    }
}
